﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CjcPhotoPrint
{
	/// <summary>
	/// Interaction logic for About.xaml
	/// </summary>
	public partial class About : Window
	{
		public About()
		{
			InitializeComponent();
		}

		private void Button_Click( object sender, RoutedEventArgs e )
		{
			Close();
		}

		private void Hyperlink_RequestNavigate( object sender, System.Windows.Navigation.RequestNavigateEventArgs e )
		{
			var navigateUri = ( sender as Hyperlink ).NavigateUri.ToString();

			Process.Start( new ProcessStartInfo( navigateUri ) );
			e.Handled = true;
		}

		public string Version
		{
			get
			{
				var v = Assembly.GetExecutingAssembly().GetName().Version;

				return string.Format( "{0}.{1}.{2} (build {3})", v.Major, v.Minor, v.Revision, v.Build );
				return Assembly.GetExecutingAssembly().GetName().Version.ToString();
			}
		}
	}
}
